﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace BankSystemWithCSharp
{
    public partial class SaveMoneyPanel : UserControl
    {
        private ISaveMoney saveMoney = new SaveMoneyController();
        public SaveMoneyPanel()
        {
            InitializeComponent();
        }

        public void Clear()
        {
            moneyTextBox.Text = string.Empty;
        }

        private void saveMoneyButton_Click(object sender, EventArgs e)
        {
            saveMoney.SaveMoney(moneyTextBox.Text);
            moneyTextBox.Text = string.Empty;
        }
    }
}
